package com.simple.datax.service;

import com.simple.datax.SimpleMessage;
import com.simple.datax.api.SimpleException;


/** 
 * @Title: ResponseMessageService.java 
 * @Package com.simple.datax.service 
 * @Description: TODO(添加描述) 
 * @author Paladin Chen 
 * @date 2012-12-27 下午3:58:28 
 * @version V1.0 
 */
public interface ResponseMessageService {
	
	/**
	 * 处理回复报文
	 * @param src 待处理消息内部对象
	 * @param responseCode 应答代码
	 * @param responseMsg 应答消息
	 * @param isMust 是不是一定要回复应答报文
	 * @throws SimpleException
	 */
	public void response(SimpleMessage src, int responseCode, String responseMsg, boolean isMust) throws SimpleException;

	/**
	 * 处理回复报文
	 * @param src 待处理消息内部对象
	 * @param responseCode 应答代码
	 * @param responseMsg 应答消息
	 * @throws SimpleException
	 */
	public void response(SimpleMessage src, int responseCode, String responseMsg) throws SimpleException;

}
